//
//  NetworkManger+User.h
//  DeepBreathing
//
//  Created by rimi on 15/12/16.
//  Copyright © 2015年 rimi. All rights reserved.
//

#import "NetworkManger.h"



@interface NetworkManger (User)
//APP用户登录~

+(void)loginWithUsername:(NSString *)username password:(NSString *)password successHander:(SuccessHander)success failureHander:(FailureHander)failure;

//APP用户注册~
+ (void)signUpWithUserName:(NSString *)username password:(NSString *)password rePwd:(NSString*)rePwd code:(NSString *)code successHandler:(SuccessHander) success failureHandler:(FailureHander)failure;
//获取用户信息
+(void)getInfoWithsuccessHandler:(SuccessHander) success failureHandler:(FailureHander)failure;
//验证手机号
+(void)verifPhoneNumberWithPhoneNumber:(NSString *)phone successHandler:(SuccessHander) success failureHandler:(FailureHander)failure;
//修改用户资料
+(void)changeUserInfoWithname:(NSString *)name age:(int)age sickTime:(int)sickTime height:(int)height weight:(int)weight smoking:(int)smoking heredity:(int)heredity sex:(int)sex fev:(NSString *)fev pef:(NSString *)pef successHander:(SuccessHander)success failureHander:(FailureHander)failure;
//忘记密码 检测验证码~
+(void)forgetCodeThenDetectionWithPhoneNumber:(NSString *)phone code:(NSString *)code successHander:(SuccessHander)success failureHander:(FailureHander)failure;
//忘记密码 操作~
+(void)getCodeWhenGetSecurityCodeWithnewPwd:(NSString *)newpwd reNewPwd:(NSString *)renewpwd phoneNumber:(NSString *)phone successHander:(SuccessHander)success failureHander:(FailureHander)failure;
//修改密码(需原密码)
+(void)changeCodeWitholdPwd:(NSString *)oldPwd newPwd:(NSString *)newPwd reNewPwd:(NSString *)reNewPwd successHander:(SuccessHander)success failureHander:(FailureHander)failure;
//更换手机号
+(void)changgePhoneNumberWithPhoneNumber:(NSString *)phone code:(NSString *)code successHander:(SuccessHander)success failureHander:(FailureHander)failure;
//获取短信验证码~
+(void)getDetectionNumberWhenRegisingWithPhoneNumber:(NSString *)phone successHander:(SuccessHander)success failureHander:(FailureHander)failure;

+(void)getDetectionNumberWhenGetingLostCodeWithPhoneNumber:(NSString *)phone successHander:(SuccessHander)success failureHander:(FailureHander)failure;

+(void)getDetectionNumberWhenChangePhoneNumberWithPhoneNumber:(NSString *)phone successHander:(SuccessHander)success failureHander:(FailureHander)failure;


@end
